package com.zy.couponapp.controller;

import com.zy.couponapp.service.CouponService;
import com.zy.userserviceapi.VO.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author MissZhou
 */
@RestController
public class TestControllor {

    @Autowired
    private CouponService couponService;

    @RequestMapping("/test")
    public String test(){
        return "111";
    }

    @RequestMapping("/test1")
    public UserVO testQuery(int id){
        return couponService.getUserById(id);
    }

    @RequestMapping("/test2")
    public String testQuery2(){
        return couponService.query();
    }

}
